package com.bestv.search.common.dao;

import com.bestv.search.common.model.Type;

import java.util.List;

/**
 * @author Michael Wang
 */

// $Id$
public interface TypeDao extends GenericDao<Type, Long> {

    List<Type> getTypes();

    Type getTypeById(Long id);

    Type getTypeByName(String name);

    Type saveType(Type type);

    void deleteTypeById(Long id);
}
